//
//  ShareReducer.swift
//  MagaCore
//
//  Created by MrMessy on 2023/5/13.
//

import Foundation
import ReSwift

struct HTShareReducer {
  static var var_reducer: Reducer<HTShareState> {
    return { action, state in
      var state = state ?? HTShareState()
      guard let action = action as? HTEnumShareAction else {
        return state
      }
      switch action {
      case .htEnumConfig(var_share: let var_share):
        state.var_share = var_share
        return state
      }
    }
  }
}
